import request from "../../request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired, type Tags } from "../../interface";

/**
 * 保存或更新 Tags 信息
 * /tags
 */
export function postTags(input: Tags, config?: AxiosRequestConfig) {
    return request.post<DeepRequired<boolean>>(`/tags`, input, config);
}
